all: splitter  client agent

splitter: splitter.c config.c cbuf.c secure_rw.c
	gcc -ggdb -Wall -DDEBUG -DINFO \
	splitter.c config.c cbuf.c secure_rw.c -o splitter \
	-lssl -lcrypto

client: client.c secure_rw.c
	gcc -ggdb -Wall -DDEBUG -DINFO \
	secure_rw.c client.c -lssl -lcrypto -o client

agent: agent.c secure_rw.c
	gcc -ggdb -Wall -DDEBUG -DINFO \
	secure_rw.c agent.c -lssl -lcrypto -o agent

clean:
	rm -f splitter client agent
